all: clean tcc

tcc: tcc.tex
	latex tcc
	makeindex -s makeglo.ist -o tcc.gls tcc.glo
	bibtex tcc
	latex tcc
	latex tcc
	dvips -t a4 tcc.dvi
	ps2pdf tcc.ps
	evince tcc.pdf&

clean: 
	-rm -f *.pdf *.aux *.dvi *.ps *.lo* *.toc *.bbl *.log *.blg *.gl* *.ilg
